package com.ms.orm.exception;

import com.ms.common.exception.BaseException;
import com.ms.common.exception.ErrorType;
import com.ms.orm.constants.DbmErrors;

public class OrmException extends BaseException {

    public OrmException() {
        super(DbmErrors.ERR_DBM);
    }

    public OrmException(ErrorType exceptionType) {
        super(exceptionType);
    }

    public OrmException(ErrorType exceptionType, Throwable cause) {
        this(exceptionType.getErrorMessage(), cause, exceptionType.getErrorCode());
    }

    public OrmException(String msg, Throwable cause, String code) {
        super(msg, cause, code);
    }

    public OrmException(String msg, Throwable cause) {
        super(msg, cause);
    }

    public OrmException(String msg) {
        super(msg);
    }

    public OrmException(Throwable cause) {
        super(cause);
    }

}
